package com.heima.model.wemedia.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 嘉德罗斯
 * @date 2021/11/22
 */
@Data
@TableName("wm_news")
@AllArgsConstructor
@NoArgsConstructor
public class WmNews {
    private static final long serialVersionUID = 1L;

    //主键id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //自媒体用户id
    private Integer userId;
    //标题
    private String title;
    //图文内容
    private String content;
    //文章布局,0无图文章
    private Short type;
    //图文频道id
    private Integer channelId;
    private String labels;
    //创建时间
    private Date createdTime;
    //提交时间
    private Date submitedTime;
    //当前状态,0草稿
    private Short status;
    //定时发布时间,不定时则
    private Date publishTime;
    //拒绝理由
    private String reason;
    //发布库文章id
    private Long articleId;
    //图片用逗号分隔
    private String images;
    private Short enable;
}
